Phase 4: Migrate from Travis CI to GitHub Actions#46
Open
dshkol wants to merge 3 commits into
Open
Conversation
Replaced deprecated Travis CI with modern GitHub Actions workflow providing more comprehensive CI/CD coverage. New GitHub Actions workflow features: - Multi-OS testing: Ubuntu, macOS, Windows - Multi-R version testing: release, devel, oldrel-1 - Automatic dependency installation with caching - System dependency handling for spatial packages - Code coverage reporting to Codecov - Check results and test output artifacts on failure - Warnings treated as errors for strict quality control Travis CI limitations addressed: - Travis CI is deprecated and no longer recommended - Limited to single OS (Linux trusty) - Manual dependency specification - Less flexible matrix configuration Updated README badge to show GitHub Actions status. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Replace expect_equivalent() with expect_equal(ignore_attr = TRUE) to eliminate warning that causes CI failure with error-on: warning. This aligns with testthat edition 3 best practices.
Collaborator
Author
|
Might be contingent on Phase 1 changes. Should probably consolidate these into a single PR... |
Exclude CI configuration and benchmark scripts from R package build to avoid R CMD check warnings about unknown directories.
Owner
|
This one could just be done by https://usethis.r-lib.org/reference/github_actions.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR modernizes the CI/CD pipeline by migrating from deprecated Travis CI to GitHub Actions, providing more comprehensive testing across multiple platforms and R versions.
Problem
Travis CI has been deprecated and is no longer the recommended CI solution for open source projects. The existing
.travis.ymlconfiguration:Solution
Comprehensive GitHub Actions workflow (
.github/workflows/R-CMD-check.yaml) featuring:Multi-Platform Testing
Multi-Version R Testing
Enhanced Features
Benefits
Changes
.github/workflows/R-CMD-check.yaml- Comprehensive CI workflowREADME.md- Replaced Travis badge with GitHub Actions badgeNEWS.md- Documented infrastructure modernization.travis.yml- Left in place for now (can be removed after merge if desired)Testing
The workflow will run automatically on this PR, testing:
All spatial dependencies (sp, sf) will be tested across all platforms.
Verification
Once merged, the badge will update to show build status:
Series Complete! 🎉
All phases include comprehensive testing, benchmarking (where applicable), and documentation.
🤖 Generated with Claude Code